package org.xxforest.game.notsing.screen.test;

import org.xxforest.game.core.XX;
import org.xxforest.game.core.assets.XXAssetManager;
import org.xxforest.game.core.scenes.scene2d.XXScreen;
import org.xxforest.game.core.scenes.scene2d.ui.XXImage;

import com.badlogic.gdx.graphics.Texture;

public class AsyncLoaderScreen extends XXScreen{

	@Override
	public void loadResources(XXAssetManager assetManager){
		assetManager.addTextureLoader("big.jpg");
	}

	@Override
	public void onCreate() {
		Texture texture = XX.asset.getTexture("big.jpg");
		XXImage image = XXImage.create(texture);
		add(image);
	}

	@Override
	public void pause() {
		
	}

	@Override
	public void resume() {
		
	}

	@Override
	public void show() {
		
	}

	@Override
	public void hide() {
		
	}

}
